package com.apo1o.cmscore.service;

import com.apo1o.cmscore.bean.Category;
import com.apo1o.cmscore.bean.ext.CategoryExtend;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Apo1o
 * @since 2023-11-15
 */
public interface ICategoryService extends IService<Category> {

    IPage<Category> query(Integer pageNum, Integer pageSize, Integer parentId);
    List<CategoryExtend> queryAllParent();
    List<Category> queryAllOneLevel();

    List<Category> queryAll();

}
